<p>天气</p>
<p id="weather"></p>
<script>

  fetch("http://wthrcdn.etouch.cn/weather_mini?city=杭州", {
    method: "GET",
  }).then(function (res) {
    console.log(res);
    return res.json()
  }).then(function (json) {
    document.getElementById("weather").innerHTML = JSON.stringify(json.data);


  })



</script>